<?php
$tdatagsp_commercial_details=array();
	$tdatagsp_commercial_details[".NumberOfChars"]=80; 
	$tdatagsp_commercial_details[".ShortName"]="gsp_commercial_details";
	$tdatagsp_commercial_details[".OwnerID"]="";
	$tdatagsp_commercial_details[".OriginalTable"]="gsp_commercial_details";


	
//	field labels
$fieldLabelsgsp_commercial_details = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsgsp_commercial_details["English"]=array();
	$fieldToolTipsgsp_commercial_details["English"]=array();
	$fieldLabelsgsp_commercial_details["English"]["id"] = "Id";
	$fieldToolTipsgsp_commercial_details["English"]["id"] = "";
	$fieldLabelsgsp_commercial_details["English"]["bcontact_id"] = "Buyer";
	$fieldToolTipsgsp_commercial_details["English"]["bcontact_id"] = "";
	$fieldLabelsgsp_commercial_details["English"]["account_id"] = "Account";
	$fieldToolTipsgsp_commercial_details["English"]["account_id"] = "";
	$fieldLabelsgsp_commercial_details["English"]["ship_mode_id"] = "Ship Mode ";
	$fieldToolTipsgsp_commercial_details["English"]["ship_mode_id"] = "";
	$fieldLabelsgsp_commercial_details["English"]["ship_from_city"] = "Ship From City";
	$fieldToolTipsgsp_commercial_details["English"]["ship_from_city"] = "";
	$fieldLabelsgsp_commercial_details["English"]["ship_from_country"] = "Ship From Country";
	$fieldToolTipsgsp_commercial_details["English"]["ship_from_country"] = "";
	$fieldLabelsgsp_commercial_details["English"]["ship_to_country"] = "Ship To Country";
	$fieldToolTipsgsp_commercial_details["English"]["ship_to_country"] = "";
	$fieldLabelsgsp_commercial_details["English"]["ship_to_port"] = "Ship To Port";
	$fieldToolTipsgsp_commercial_details["English"]["ship_to_port"] = "";
	$fieldLabelsgsp_commercial_details["English"]["ship_date"] = "Ship Date";
	$fieldToolTipsgsp_commercial_details["English"]["ship_date"] = "";
	$fieldLabelsgsp_commercial_details["English"]["remarks"] = "Remarks";
	$fieldToolTipsgsp_commercial_details["English"]["remarks"] = "";
	$fieldLabelsgsp_commercial_details["English"]["support_documents"] = "Support Documents";
	$fieldToolTipsgsp_commercial_details["English"]["support_documents"] = "";
	$fieldLabelsgsp_commercial_details["English"]["origin_requirements"] = "Origin Requirements";
	$fieldToolTipsgsp_commercial_details["English"]["origin_requirements"] = "";
	$fieldLabelsgsp_commercial_details["English"]["book_nos"] = "Book Nos";
	$fieldToolTipsgsp_commercial_details["English"]["book_nos"] = "";
	$fieldLabelsgsp_commercial_details["English"]["ship_status"] = "Ship Status";
	$fieldToolTipsgsp_commercial_details["English"]["ship_status"] = "";
	$fieldLabelsgsp_commercial_details["English"]["status"] = "Status";
	$fieldToolTipsgsp_commercial_details["English"]["status"] = "";
	$fieldLabelsgsp_commercial_details["English"]["signatory"] = "Signatory";
	$fieldToolTipsgsp_commercial_details["English"]["signatory"] = "";
	$fieldLabelsgsp_commercial_details["English"]["pre_carriage_mode"] = "Pre Carriage Mode";
	$fieldToolTipsgsp_commercial_details["English"]["pre_carriage_mode"] = "";
	$fieldLabelsgsp_commercial_details["English"]["pre_carriage_from"] = "Pre Carriage From";
	$fieldToolTipsgsp_commercial_details["English"]["pre_carriage_from"] = "";
	$fieldLabelsgsp_commercial_details["English"]["pre_carriage_to"] = "Pre Carriage To";
	$fieldToolTipsgsp_commercial_details["English"]["pre_carriage_to"] = "";
	$fieldLabelsgsp_commercial_details["English"]["ref_id"] = "Ref Id";
	$fieldToolTipsgsp_commercial_details["English"]["ref_id"] = "";
	$fieldLabelsgsp_commercial_details["English"]["buyer_address"] = "Buyer Address";
	$fieldToolTipsgsp_commercial_details["English"]["buyer_address"] = "";
	$fieldLabelsgsp_commercial_details["English"]["account_address"] = "Account Address";
	$fieldToolTipsgsp_commercial_details["English"]["account_address"] = "";
	if (count($fieldToolTipsgsp_commercial_details["English"])){
		$tdatagsp_commercial_details[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["bcontact_id"] = "Bcontact Id";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["bcontact_id"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["account_id"] = "Account Id";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["account_id"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_mode_id"] = "Ship Mode Id";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_mode_id"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_from_city"] = "Ship From City";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_from_city"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_from_country"] = "Ship From Country";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_from_country"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_to_country"] = "Ship To Country";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_to_country"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_to_port"] = "Ship To Port";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_to_port"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_date"] = "Ship Date";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_date"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["remarks"] = "Remarks";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["remarks"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["support_documents"] = "Support Documents";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["support_documents"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["origin_requirements"] = "Origin Requirements";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["origin_requirements"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["book_nos"] = "Book Nos";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["book_nos"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_status"] = "Ship Status";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ship_status"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["status"] = "Status";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["status"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["signatory"] = "Signatory";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["signatory"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["pre_carriage_mode"] = "Pre Carriage Mode";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["pre_carriage_mode"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["pre_carriage_from"] = "Pre Carriage From";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["pre_carriage_from"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["pre_carriage_to"] = "Pre Carriage To";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["pre_carriage_to"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ref_id"] = "Ref Id";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["ref_id"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["buyer_address"] = "Buyer Address";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["buyer_address"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["account_address"] = "Account Address";
	$fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"]["account_address"] = "";
	if (count($fieldToolTipsgsp_commercial_details["Chinese (Hong Kong S.A.R.)"])){
		$tdatagsp_commercial_details[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]=array();
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]=array();
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["bcontact_id"] = "Bcontact Id";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["bcontact_id"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["account_id"] = "Account Id";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["account_id"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["ship_mode_id"] = "Ship Mode Id";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["ship_mode_id"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["ship_from_city"] = "Ship From City";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["ship_from_city"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["ship_from_country"] = "Ship From Country";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["ship_from_country"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["ship_to_country"] = "Ship To Country";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["ship_to_country"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["ship_to_port"] = "Ship To Port";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["ship_to_port"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["ship_date"] = "Ship Date";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["ship_date"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["remarks"] = "Remarks";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["remarks"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["support_documents"] = "Support Documents";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["support_documents"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["origin_requirements"] = "Origin Requirements";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["origin_requirements"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["book_nos"] = "Book Nos";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["book_nos"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["ship_status"] = "Ship Status";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["ship_status"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["status"] = "Status";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["status"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["signatory"] = "Signatory";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["signatory"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["pre_carriage_mode"] = "Pre Carriage Mode";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["pre_carriage_mode"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["pre_carriage_from"] = "Pre Carriage From";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["pre_carriage_from"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["pre_carriage_to"] = "Pre Carriage To";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["pre_carriage_to"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["ref_id"] = "Ref Id";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["ref_id"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["buyer_address"] = "Buyer Address";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["buyer_address"] = "";
	$fieldLabelsgsp_commercial_details["Chinese (Taiwan)"]["account_address"] = "Account Address";
	$fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"]["account_address"] = "";
	if (count($fieldToolTipsgsp_commercial_details["Chinese (Taiwan)"])){
		$tdatagsp_commercial_details[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelsgsp_commercial_details["French"]=array();
	$fieldToolTipsgsp_commercial_details["French"]=array();
	$fieldLabelsgsp_commercial_details["French"]["id"] = "Id";
	$fieldToolTipsgsp_commercial_details["French"]["id"] = "";
	$fieldLabelsgsp_commercial_details["French"]["bcontact_id"] = "Bcontact Id";
	$fieldToolTipsgsp_commercial_details["French"]["bcontact_id"] = "";
	$fieldLabelsgsp_commercial_details["French"]["account_id"] = "Account Id";
	$fieldToolTipsgsp_commercial_details["French"]["account_id"] = "";
	$fieldLabelsgsp_commercial_details["French"]["ship_mode_id"] = "Ship Mode Id";
	$fieldToolTipsgsp_commercial_details["French"]["ship_mode_id"] = "";
	$fieldLabelsgsp_commercial_details["French"]["ship_from_city"] = "Ship From City";
	$fieldToolTipsgsp_commercial_details["French"]["ship_from_city"] = "";
	$fieldLabelsgsp_commercial_details["French"]["ship_from_country"] = "Ship From Country";
	$fieldToolTipsgsp_commercial_details["French"]["ship_from_country"] = "";
	$fieldLabelsgsp_commercial_details["French"]["ship_to_country"] = "Ship To Country";
	$fieldToolTipsgsp_commercial_details["French"]["ship_to_country"] = "";
	$fieldLabelsgsp_commercial_details["French"]["ship_to_port"] = "Ship To Port";
	$fieldToolTipsgsp_commercial_details["French"]["ship_to_port"] = "";
	$fieldLabelsgsp_commercial_details["French"]["ship_date"] = "Ship Date";
	$fieldToolTipsgsp_commercial_details["French"]["ship_date"] = "";
	$fieldLabelsgsp_commercial_details["French"]["remarks"] = "Remarks";
	$fieldToolTipsgsp_commercial_details["French"]["remarks"] = "";
	$fieldLabelsgsp_commercial_details["French"]["support_documents"] = "Support Documents";
	$fieldToolTipsgsp_commercial_details["French"]["support_documents"] = "";
	$fieldLabelsgsp_commercial_details["French"]["origin_requirements"] = "Origin Requirements";
	$fieldToolTipsgsp_commercial_details["French"]["origin_requirements"] = "";
	$fieldLabelsgsp_commercial_details["French"]["book_nos"] = "Book Nos";
	$fieldToolTipsgsp_commercial_details["French"]["book_nos"] = "";
	$fieldLabelsgsp_commercial_details["French"]["ship_status"] = "Ship Status";
	$fieldToolTipsgsp_commercial_details["French"]["ship_status"] = "";
	$fieldLabelsgsp_commercial_details["French"]["status"] = "Status";
	$fieldToolTipsgsp_commercial_details["French"]["status"] = "";
	$fieldLabelsgsp_commercial_details["French"]["signatory"] = "Signatory";
	$fieldToolTipsgsp_commercial_details["French"]["signatory"] = "";
	$fieldLabelsgsp_commercial_details["French"]["pre_carriage_mode"] = "Pre Carriage Mode";
	$fieldToolTipsgsp_commercial_details["French"]["pre_carriage_mode"] = "";
	$fieldLabelsgsp_commercial_details["French"]["pre_carriage_from"] = "Pre Carriage From";
	$fieldToolTipsgsp_commercial_details["French"]["pre_carriage_from"] = "";
	$fieldLabelsgsp_commercial_details["French"]["pre_carriage_to"] = "Pre Carriage To";
	$fieldToolTipsgsp_commercial_details["French"]["pre_carriage_to"] = "";
	$fieldLabelsgsp_commercial_details["French"]["ref_id"] = "Ref Id";
	$fieldToolTipsgsp_commercial_details["French"]["ref_id"] = "";
	$fieldLabelsgsp_commercial_details["French"]["buyer_address"] = "Buyer Address";
	$fieldToolTipsgsp_commercial_details["French"]["buyer_address"] = "";
	$fieldLabelsgsp_commercial_details["French"]["account_address"] = "Account Address";
	$fieldToolTipsgsp_commercial_details["French"]["account_address"] = "";
	if (count($fieldToolTipsgsp_commercial_details["French"])){
		$tdatagsp_commercial_details[".isUseToolTips"]=true;
	}
}


	
	$tdatagsp_commercial_details[".NCSearch"]=true;

	

$tdatagsp_commercial_details[".shortTableName"] = "gsp_commercial_details";
$tdatagsp_commercial_details[".nSecOptions"] = 0;
$tdatagsp_commercial_details[".recsPerRowList"] = 1;	
$tdatagsp_commercial_details[".tableGroupBy"] = "0";
$tdatagsp_commercial_details[".mainTableOwnerID"] = "";
$tdatagsp_commercial_details[".moveNext"] = 1;




$tdatagsp_commercial_details[".showAddInPopup"] = false;

$tdatagsp_commercial_details[".showEditInPopup"] = false;

$tdatagsp_commercial_details[".showViewInPopup"] = false;


$tdatagsp_commercial_details[".fieldsForRegister"] = array();

$tdatagsp_commercial_details[".listAjax"] = true;

	$tdatagsp_commercial_details[".audit"] = false;

	$tdatagsp_commercial_details[".locking"] = false;
	
$tdatagsp_commercial_details[".listIcons"] = true;
$tdatagsp_commercial_details[".edit"] = true;
$tdatagsp_commercial_details[".inlineEdit"] = true;
$tdatagsp_commercial_details[".copy"] = true;
$tdatagsp_commercial_details[".view"] = true;

$tdatagsp_commercial_details[".exportTo"] = true;

$tdatagsp_commercial_details[".printFriendly"] = true;

$tdatagsp_commercial_details[".delete"] = true;

$tdatagsp_commercial_details[".showSimpleSearchOptions"] = true;

$tdatagsp_commercial_details[".showSearchPanel"] = true;


$tdatagsp_commercial_details[".isUseAjaxSuggest"] = true;

$tdatagsp_commercial_details[".rowHighlite"] = true;


// button handlers file names

$tdatagsp_commercial_details[".addPageEvents"] = true;

$tdatagsp_commercial_details[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatagsp_commercial_details[".isUseCalendarForSearch"] = true;

// use timepicker for search panel
$tdatagsp_commercial_details[".isUseTimeForSearch"] = false;

$tdatagsp_commercial_details[".isUseiBox"] = false;


$tdatagsp_commercial_details[".useDetailsPreview"] = true;	

$tdatagsp_commercial_details[".isUseInlineAdd"] = true;

$tdatagsp_commercial_details[".isUseInlineEdit"] = true;
$tdatagsp_commercial_details[".isUseInlineJs"] = $tdatagsp_commercial_details[".isUseInlineAdd"] || $tdatagsp_commercial_details[".isUseInlineEdit"];

$tdatagsp_commercial_details[".allSearchFields"] = array();

$tdatagsp_commercial_details[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "id";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "ref_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ref_id", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ref_id";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "bcontact_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bcontact_id", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "bcontact_id";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "buyer_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_address", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "buyer_address";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "account_id";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "account_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_address", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "account_address";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "ship_mode_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_mode_id", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_mode_id";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "ship_from_city";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_from_city", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_from_city";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "ship_to_country";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_to_country", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_to_country";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "ship_to_port";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_to_port", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_to_port";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "ship_from_country";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_from_country", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_from_country";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "ship_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_date", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_date";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "ship_status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_status", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_status";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("remarks", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "remarks";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "support_documents";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("support_documents", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "support_documents";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "origin_requirements";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("origin_requirements", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "origin_requirements";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("status", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "status";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "book_nos";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("book_nos", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "book_nos";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "pre_carriage_mode";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_mode", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "pre_carriage_mode";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "signatory";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("signatory", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "signatory";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "pre_carriage_to";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_to", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "pre_carriage_to";	
}
$tdatagsp_commercial_details[".globSearchFields"][] = "pre_carriage_from";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_from", $tdatagsp_commercial_details[".allSearchFields"]))
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "pre_carriage_from";	
}


$tdatagsp_commercial_details[".googleLikeFields"][] = "id";
$tdatagsp_commercial_details[".googleLikeFields"][] = "ref_id";
$tdatagsp_commercial_details[".googleLikeFields"][] = "bcontact_id";
$tdatagsp_commercial_details[".googleLikeFields"][] = "buyer_address";
$tdatagsp_commercial_details[".googleLikeFields"][] = "account_id";
$tdatagsp_commercial_details[".googleLikeFields"][] = "account_address";
$tdatagsp_commercial_details[".googleLikeFields"][] = "ship_mode_id";
$tdatagsp_commercial_details[".googleLikeFields"][] = "ship_from_city";
$tdatagsp_commercial_details[".googleLikeFields"][] = "ship_to_country";
$tdatagsp_commercial_details[".googleLikeFields"][] = "ship_to_port";
$tdatagsp_commercial_details[".googleLikeFields"][] = "ship_from_country";
$tdatagsp_commercial_details[".googleLikeFields"][] = "ship_date";
$tdatagsp_commercial_details[".googleLikeFields"][] = "ship_status";
$tdatagsp_commercial_details[".googleLikeFields"][] = "remarks";
$tdatagsp_commercial_details[".googleLikeFields"][] = "support_documents";
$tdatagsp_commercial_details[".googleLikeFields"][] = "origin_requirements";
$tdatagsp_commercial_details[".googleLikeFields"][] = "status";
$tdatagsp_commercial_details[".googleLikeFields"][] = "book_nos";
$tdatagsp_commercial_details[".googleLikeFields"][] = "pre_carriage_mode";
$tdatagsp_commercial_details[".googleLikeFields"][] = "signatory";
$tdatagsp_commercial_details[".googleLikeFields"][] = "pre_carriage_to";
$tdatagsp_commercial_details[".googleLikeFields"][] = "pre_carriage_from";



$tdatagsp_commercial_details[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "id";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "ref_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ref_id", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ref_id";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "bcontact_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("bcontact_id", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "bcontact_id";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "buyer_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("buyer_address", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "buyer_address";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "account_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_id", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "account_id";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "account_address";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("account_address", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "account_address";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "ship_mode_id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_mode_id", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_mode_id";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "ship_from_city";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_from_city", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_from_city";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "ship_to_country";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_to_country", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_to_country";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "ship_to_port";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_to_port", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_to_port";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "ship_from_country";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_from_country", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_from_country";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "ship_date";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_date", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_date";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "ship_status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("ship_status", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "ship_status";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "remarks";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("remarks", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "remarks";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "support_documents";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("support_documents", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "support_documents";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "origin_requirements";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("origin_requirements", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "origin_requirements";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "status";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("status", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "status";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "book_nos";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("book_nos", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "book_nos";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "pre_carriage_mode";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_mode", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "pre_carriage_mode";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "signatory";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("signatory", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "signatory";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "pre_carriage_to";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_to", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "pre_carriage_to";	
}
$tdatagsp_commercial_details[".advSearchFields"][] = "pre_carriage_from";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("pre_carriage_from", $tdatagsp_commercial_details[".allSearchFields"])) 
{
	$tdatagsp_commercial_details[".allSearchFields"][] = "pre_carriage_from";	
}

$tdatagsp_commercial_details[".isTableType"] = "list";


	

$tdatagsp_commercial_details[".isDisplayLoading"] = true;

$tdatagsp_commercial_details[".isResizeColumns"] = false;

	$tdatagsp_commercial_details[".subQueriesSupAccess"] = true;




$tdatagsp_commercial_details[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatagsp_commercial_details[".strOrderBy"] = $gstrOrderBy;
	
$tdatagsp_commercial_details[".orderindexes"] = array();

$tdatagsp_commercial_details[".sqlHead"] = "SELECT id,  bcontact_id,  account_id,  ship_mode_id,  ship_from_city,  ship_from_country,  ship_to_country,  ship_to_port,  ship_date,  remarks,  support_documents,  origin_requirements,  book_nos,  ship_status,  status,  signatory,  pre_carriage_mode,  pre_carriage_from,  pre_carriage_to,  ref_id,  \"\" AS buyer_address,  \"\" AS account_address";
$tdatagsp_commercial_details[".sqlFrom"] = "FROM gsp_commercial_details";
$tdatagsp_commercial_details[".sqlWhereExpr"] = "";
$tdatagsp_commercial_details[".sqlTail"] = "";

//fill array of tabs for edit page
$arrEditTabs = array();
	$tabFields = array();
	$tabFields[]="ref_id";
$arrEditTabs[] = array('tabId'=>'Invoice1',
					   'tabName'=>"Invoice",
					   'nType'=>'1',
					   'nOrder'=>1,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[]="bcontact_id";
	$tabFields[]="buyer_address";
	$tabFields[]="account_id";
	$tabFields[]="account_address";
$arrEditTabs[] = array('tabId'=>'Companies1',
					   'tabName'=>"Companies",
					   'nType'=>'1',
					   'nOrder'=>3,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
$arrEditTabs[] = array('tabId'=>'Shipment_Details1',
					   'tabName'=>"Shipment Details",
					   'nType'=>'1',
					   'nOrder'=>8,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[]="remarks";
	$tabFields[]="support_documents";
	$tabFields[]="origin_requirements";
	$tabFields[]="status";
	$tabFields[]="book_nos";
	$tabFields[]="pre_carriage_mode";
	$tabFields[]="signatory";
	$tabFields[]="pre_carriage_to";
	$tabFields[]="pre_carriage_from";
$arrEditTabs[] = array('tabId'=>'Commercial1',
					   'tabName'=>"Commercial",
					   'nType'=>'1',
					   'nOrder'=>9,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
$tdatagsp_commercial_details[".arrEditTabs"] = $arrEditTabs;

//fill array of tabs for add page
$arrAddTabs = array();
	$tabFields = array();
	$tabFields[] = "ref_id";
$arrAddTabs[] = array('tabId'=>'Invoice1',
					  'tabName'=>"Invoice",
					  'nType'=>'1',
					  'nOrder'=>1,
					  'tabGroup'=>0,
					  'arrFields'=> $tabFields,
					  'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "bcontact_id";
	$tabFields[] = "buyer_address";
	$tabFields[] = "account_id";
	$tabFields[] = "account_address";
$arrAddTabs[] = array('tabId'=>'Companies1',
					  'tabName'=>"Companies",
					  'nType'=>'1',
					  'nOrder'=>3,
					  'tabGroup'=>0,
					  'arrFields'=> $tabFields,
					  'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "ship_mode_id";
	$tabFields[] = "ship_from_city";
	$tabFields[] = "ship_to_country";
	$tabFields[] = "ship_to_port";
	$tabFields[] = "ship_from_country";
	$tabFields[] = "ship_date";
	$tabFields[] = "ship_status";
$arrAddTabs[] = array('tabId'=>'Shipment_Details1',
					  'tabName'=>"Shipment Details",
					  'nType'=>'1',
					  'nOrder'=>8,
					  'tabGroup'=>0,
					  'arrFields'=> $tabFields,
					  'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "remarks";
	$tabFields[] = "support_documents";
	$tabFields[] = "origin_requirements";
	$tabFields[] = "status";
	$tabFields[] = "book_nos";
	$tabFields[] = "pre_carriage_mode";
	$tabFields[] = "signatory";
	$tabFields[] = "pre_carriage_to";
	$tabFields[] = "pre_carriage_from";
$arrAddTabs[] = array('tabId'=>'Commercial1',
					  'tabName'=>"Commercial",
					  'nType'=>'1',
					  'nOrder'=>16,
					  'tabGroup'=>0,
					  'arrFields'=> $tabFields,
					  'expandSec'=>1);
$tdatagsp_commercial_details[".arrAddTabs"] = $arrAddTabs;

//fill array of tabs for view page
$arrViewTabs = array();
	$tabFields = array();
	$tabFields[] = "ref_id";
$arrViewTabs[] = array('tabId'=>'Invoice1',
					   'tabName'=>"Invoice",
					   'nType'=>'1',
					   'nOrder'=>2,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "bcontact_id";
	$tabFields[] = "buyer_address";
	$tabFields[] = "account_id";
	$tabFields[] = "account_address";
$arrViewTabs[] = array('tabId'=>'Companies1',
					   'tabName'=>"Companies",
					   'nType'=>'1',
					   'nOrder'=>4,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "ship_mode_id";
	$tabFields[] = "ship_from_city";
	$tabFields[] = "ship_to_country";
	$tabFields[] = "ship_to_port";
	$tabFields[] = "ship_from_country";
	$tabFields[] = "ship_date";
	$tabFields[] = "ship_status";
$arrViewTabs[] = array('tabId'=>'Shipment_Details1',
					   'tabName'=>"Shipment Details",
					   'nType'=>'1',
					   'nOrder'=>9,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
	$tabFields = array();
	$tabFields[] = "remarks";
	$tabFields[] = "support_documents";
	$tabFields[] = "origin_requirements";
	$tabFields[] = "status";
	$tabFields[] = "book_nos";
	$tabFields[] = "pre_carriage_mode";
	$tabFields[] = "signatory";
	$tabFields[] = "pre_carriage_to";
	$tabFields[] = "pre_carriage_from";
$arrViewTabs[] = array('tabId'=>'Commercial1',
					   'tabName'=>"Commercial",
					   'nType'=>'1',
					   'nOrder'=>17,
					   'tabGroup'=>0,
					   'arrFields'=> $tabFields,
					   'expandSec'=>1);
$tdatagsp_commercial_details[".arrViewTabs"] = $arrViewTabs;

//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatagsp_commercial_details[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatagsp_commercial_details[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatagsp_commercial_details[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["id"]=$fdata;
//	bcontact_id
	$fdata = array();
	$fdata["strName"] = "bcontact_id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Buyer"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
	$fdata["autoCompleteFields"][] = array('masterF'=>"buyer_address", 'lookupF'=>"full_addr");
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="company_name";
				$fdata["LookupTable"]="company_addresses";
	$fdata["LookupOrderBy"]="company_name";
							$fdata["LookupWhere"] = "category='Buyer'";
										$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "bcontact_id";
	
		$fdata["FullName"]= "bcontact_id";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["bcontact_id"]=$fdata;
//	account_id
	$fdata = array();
	$fdata["strName"] = "account_id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Account"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
	$fdata["autoCompleteFields"][] = array('masterF'=>"account_address", 'lookupF'=>"full_addr");
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="company_name";
				$fdata["LookupTable"]="company_addresses";
	$fdata["LookupOrderBy"]="company_name";
							$fdata["LookupWhere"] = "category='Account'";
										$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "account_id";
	
		$fdata["FullName"]= "account_id";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["account_id"]=$fdata;
//	ship_mode_id
	$fdata = array();
	$fdata["strName"] = "ship_mode_id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship Mode "; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="name";
				$fdata["LookupTable"]="shipment_modes";
	$fdata["LookupOrderBy"]="name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_mode_id";
	
		$fdata["FullName"]= "ship_mode_id";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["ship_mode_id"]=$fdata;
//	ship_from_city
	$fdata = array();
	$fdata["strName"] = "ship_from_city";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship From City"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="city_name";
				$fdata["LookupTable"]="cities";
	$fdata["LookupOrderBy"]="city_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_from_city";
	
		$fdata["FullName"]= "ship_from_city";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["ship_from_city"]=$fdata;
//	ship_from_country
	$fdata = array();
	$fdata["strName"] = "ship_from_country";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship From Country"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="country_name";
				$fdata["LookupTable"]="countries";
	$fdata["LookupOrderBy"]="country_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_from_country";
	
		$fdata["FullName"]= "ship_from_country";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["ship_from_country"]=$fdata;
//	ship_to_country
	$fdata = array();
	$fdata["strName"] = "ship_to_country";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship To Country"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="country_name";
				$fdata["LookupTable"]="countries";
	$fdata["LookupOrderBy"]="country_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_to_country";
	
		$fdata["FullName"]= "ship_to_country";
	
		
		
		
		
		
				$fdata["Index"]= 7;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["ship_to_country"]=$fdata;
//	ship_to_port
	$fdata = array();
	$fdata["strName"] = "ship_to_port";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship To Port"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="port_name";
				$fdata["LookupTable"]="ports";
	$fdata["LookupOrderBy"]="port_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_to_port";
	
		$fdata["FullName"]= "ship_to_port";
	
		
		
		
		
		
				$fdata["Index"]= 8;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["ship_to_port"]=$fdata;
//	ship_date
	$fdata = array();
	$fdata["strName"] = "ship_date";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship Date"; 
	
		
		
	$fdata["FieldType"]= 7;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Date";
	$fdata["ViewFormat"]= "Short Date";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_date";
	
		$fdata["FullName"]= "ship_date";
	
		
		
		
		
		
				$fdata["Index"]= 9;
		$fdata["DateEditType"] = 13; 
	$fdata["InitialYearFactor"] = 100; 
	$fdata["LastYearFactor"] = 10; 
			
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["ship_date"]=$fdata;
//	remarks
	$fdata = array();
	$fdata["strName"] = "remarks";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Remarks"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "remarks";
	
		$fdata["FullName"]= "remarks";
	
		
		
		
		
		
				$fdata["Index"]= 10;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["remarks"]=$fdata;
//	support_documents
	$fdata = array();
	$fdata["strName"] = "support_documents";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Support Documents"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "support_documents";
	
		$fdata["FullName"]= "support_documents";
	
		
		
		
		
		
				$fdata["Index"]= 11;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["support_documents"]=$fdata;
//	origin_requirements
	$fdata = array();
	$fdata["strName"] = "origin_requirements";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Origin Requirements"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "origin_requirements";
	
		$fdata["FullName"]= "origin_requirements";
	
		
		
		
		
		
				$fdata["Index"]= 12;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["origin_requirements"]=$fdata;
//	book_nos
	$fdata = array();
	$fdata["strName"] = "book_nos";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Book Nos"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "book_nos";
	
		$fdata["FullName"]= "book_nos";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 13;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["book_nos"]=$fdata;
//	ship_status
	$fdata = array();
	$fdata["strName"] = "ship_status";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ship Status"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ship_status";
	
		$fdata["FullName"]= "ship_status";
	
		
		
		
		
		
				$fdata["Index"]= 14;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["ship_status"]=$fdata;
//	status
	$fdata = array();
	$fdata["strName"] = "status";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Status"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "status";
	
		$fdata["FullName"]= "status";
	
		
		
		
		
		
				$fdata["Index"]= 15;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["status"]=$fdata;
//	signatory
	$fdata = array();
	$fdata["strName"] = "signatory";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Signatory"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "signatory";
	
		$fdata["FullName"]= "signatory";
	
		
		
		
		
		
				$fdata["Index"]= 16;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=255";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["signatory"]=$fdata;
//	pre_carriage_mode
	$fdata = array();
	$fdata["strName"] = "pre_carriage_mode";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Pre Carriage Mode"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="name";
				$fdata["LookupTable"]="shipment_modes";
	$fdata["LookupOrderBy"]="";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "pre_carriage_mode";
	
		$fdata["FullName"]= "pre_carriage_mode";
	
		
		
		
		
		
				$fdata["Index"]= 17;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["pre_carriage_mode"]=$fdata;
//	pre_carriage_from
	$fdata = array();
	$fdata["strName"] = "pre_carriage_from";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Pre Carriage From"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="city_name";
				$fdata["LookupTable"]="cities";
	$fdata["LookupOrderBy"]="city_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "pre_carriage_from";
	
		$fdata["FullName"]= "pre_carriage_from";
	
		
		
		
		
		
				$fdata["Index"]= 18;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["pre_carriage_from"]=$fdata;
//	pre_carriage_to
	$fdata = array();
	$fdata["strName"] = "pre_carriage_to";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Pre Carriage To"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="city_name";
				$fdata["LookupTable"]="cities";
	$fdata["LookupOrderBy"]="city_name";
																$fdata["AllowToAdd"]=true; 
				
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "pre_carriage_to";
	
		$fdata["FullName"]= "pre_carriage_to";
	
		
		
		
		
		
				$fdata["Index"]= 19;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["pre_carriage_to"]=$fdata;
//	ref_id
	$fdata = array();
	$fdata["strName"] = "ref_id";
	$fdata["ownerTable"] = "gsp_commercial_details";
		$fdata["Label"]="Ref Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Lookup wizard";
	$fdata["ViewFormat"]= "";
	
		
		$fdata["LookupType"]=1;
	$fdata["pLookupType"] = 1;
	$fdata["freeInput"] = 0;	
	$fdata["autoCompleteFieldsOnEdit"] = 0;
	$fdata["autoCompleteFields"] = array();
	$fdata["autoCompleteFields"][] = array('masterF'=>"bcontact_id", 'lookupF'=>"buyer_id");
	$fdata["autoCompleteFields"][] = array('masterF'=>"account_id", 'lookupF'=>"account_id");
										$fdata["LinkField"]="id";
	$fdata["LinkFieldType"]=3;
	$fdata["DisplayField"]="commercial_invoice_no";
				$fdata["LookupTable"]="commercial_invoices";
	$fdata["LookupOrderBy"]="commercial_invoice_no";
																			
					
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "ref_id";
	
		$fdata["FullName"]= "ref_id";
	
		
		
		
		
		
				$fdata["Index"]= 20;
				
		
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["ref_id"]=$fdata;
//	buyer_address
	$fdata = array();
	$fdata["strName"] = "buyer_address";
	$fdata["ownerTable"] = "";
		$fdata["Label"]="Buyer Address"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "buyer_address";
	
		$fdata["FullName"]= "\"\"";
	
		
		
		
		
		
				$fdata["Index"]= 21;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=200";
		$fdata["nCols"] = 200;
		
		
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["buyer_address"]=$fdata;
//	account_address
	$fdata = array();
	$fdata["strName"] = "account_address";
	$fdata["ownerTable"] = "";
		$fdata["Label"]="Account Address"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text area";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "account_address";
	
		$fdata["FullName"]= "\"\"";
	
		
		
		
		
		
				$fdata["Index"]= 22;
			$fdata["EditParams"] = "";
			$fdata["EditParams"].= " rows=100";
		$fdata["nRows"] = 100;
			$fdata["EditParams"].= " cols=200";
		$fdata["nCols"] = 200;
		
		
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatagsp_commercial_details["account_address"]=$fdata;

	
$tables_data["gsp_commercial_details"]=&$tdatagsp_commercial_details;
$field_labels["gsp_commercial_details"] = &$fieldLabelsgsp_commercial_details;
$fieldToolTips["gsp_commercial_details"] = &$fieldToolTipsgsp_commercial_details;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["gsp_commercial_details"] = array();
$dIndex = 1-1;
			$strOriginalDetailsTable="gsp_item_details";
	$detailsTablesData["gsp_commercial_details"][$dIndex] = array(
		  "dDataSourceTable"=>"gsp_item_details"
		, "dOriginalTable"=>$strOriginalDetailsTable
		, "dShortTable"=>"gsp_item_details"
		, "masterKeys"=>array()
		, "detailKeys"=>array()
		, "dispChildCount"=> "1"
		, "hideChild"=>"0"
		, "sqlHead"=>"SELECT id,   gsp_id,   item_no,   marks_nos_packages,   description,   origin,   gross_weight,   nos_invoice_date"	
		, "sqlFrom"=>"FROM gsp_item_details"	
		, "sqlWhere"=>""
		, "sqlTail"=>""
		, "groupBy"=>"0"
		, "previewOnList" => 1
		, "previewOnAdd" => 1
		, "previewOnEdit" => 1
		, "previewOnView" => 1
	);	
		$detailsTablesData["gsp_commercial_details"][$dIndex]["masterKeys"][]="id";
		$detailsTablesData["gsp_commercial_details"][$dIndex]["detailKeys"][]="gsp_id";


	
// tables which are master tables for current table (detail)
$masterTablesData["gsp_commercial_details"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto37=array();
$proto37["m_strHead"] = "SELECT";
$proto37["m_strFieldList"] = "id,  bcontact_id,  account_id,  ship_mode_id,  ship_from_city,  ship_from_country,  ship_to_country,  ship_to_port,  ship_date,  remarks,  support_documents,  origin_requirements,  book_nos,  ship_status,  status,  signatory,  pre_carriage_mode,  pre_carriage_from,  pre_carriage_to,  ref_id,  \"\" AS buyer_address,  \"\" AS account_address";
$proto37["m_strFrom"] = "FROM gsp_commercial_details";
$proto37["m_strWhere"] = "";
$proto37["m_strOrderBy"] = "";
$proto37["m_strTail"] = "";
$proto38=array();
$proto38["m_sql"] = "";
$proto38["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto38["m_column"]=$obj;
$proto38["m_contained"] = array();
$proto38["m_strCase"] = "";
$proto38["m_havingmode"] = "0";
$proto38["m_inBrackets"] = "0";
$proto38["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto38);

$proto37["m_where"] = $obj;
$proto40=array();
$proto40["m_sql"] = "";
$proto40["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto40["m_column"]=$obj;
$proto40["m_contained"] = array();
$proto40["m_strCase"] = "";
$proto40["m_havingmode"] = "0";
$proto40["m_inBrackets"] = "0";
$proto40["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto40);

$proto37["m_having"] = $obj;
$proto37["m_fieldlist"] = array();
						$proto42=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "gsp_commercial_details"
));

$proto42["m_expr"]=$obj;
$proto42["m_alias"] = "";
$obj = new SQLFieldListItem($proto42);

$proto37["m_fieldlist"][]=$obj;
						$proto44=array();
			$obj = new SQLField(array(
	"m_strName" => "bcontact_id",
	"m_strTable" => "gsp_commercial_details"
));

$proto44["m_expr"]=$obj;
$proto44["m_alias"] = "";
$obj = new SQLFieldListItem($proto44);

$proto37["m_fieldlist"][]=$obj;
						$proto46=array();
			$obj = new SQLField(array(
	"m_strName" => "account_id",
	"m_strTable" => "gsp_commercial_details"
));

$proto46["m_expr"]=$obj;
$proto46["m_alias"] = "";
$obj = new SQLFieldListItem($proto46);

$proto37["m_fieldlist"][]=$obj;
						$proto48=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_mode_id",
	"m_strTable" => "gsp_commercial_details"
));

$proto48["m_expr"]=$obj;
$proto48["m_alias"] = "";
$obj = new SQLFieldListItem($proto48);

$proto37["m_fieldlist"][]=$obj;
						$proto50=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_from_city",
	"m_strTable" => "gsp_commercial_details"
));

$proto50["m_expr"]=$obj;
$proto50["m_alias"] = "";
$obj = new SQLFieldListItem($proto50);

$proto37["m_fieldlist"][]=$obj;
						$proto52=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_from_country",
	"m_strTable" => "gsp_commercial_details"
));

$proto52["m_expr"]=$obj;
$proto52["m_alias"] = "";
$obj = new SQLFieldListItem($proto52);

$proto37["m_fieldlist"][]=$obj;
						$proto54=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_to_country",
	"m_strTable" => "gsp_commercial_details"
));

$proto54["m_expr"]=$obj;
$proto54["m_alias"] = "";
$obj = new SQLFieldListItem($proto54);

$proto37["m_fieldlist"][]=$obj;
						$proto56=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_to_port",
	"m_strTable" => "gsp_commercial_details"
));

$proto56["m_expr"]=$obj;
$proto56["m_alias"] = "";
$obj = new SQLFieldListItem($proto56);

$proto37["m_fieldlist"][]=$obj;
						$proto58=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_date",
	"m_strTable" => "gsp_commercial_details"
));

$proto58["m_expr"]=$obj;
$proto58["m_alias"] = "";
$obj = new SQLFieldListItem($proto58);

$proto37["m_fieldlist"][]=$obj;
						$proto60=array();
			$obj = new SQLField(array(
	"m_strName" => "remarks",
	"m_strTable" => "gsp_commercial_details"
));

$proto60["m_expr"]=$obj;
$proto60["m_alias"] = "";
$obj = new SQLFieldListItem($proto60);

$proto37["m_fieldlist"][]=$obj;
						$proto62=array();
			$obj = new SQLField(array(
	"m_strName" => "support_documents",
	"m_strTable" => "gsp_commercial_details"
));

$proto62["m_expr"]=$obj;
$proto62["m_alias"] = "";
$obj = new SQLFieldListItem($proto62);

$proto37["m_fieldlist"][]=$obj;
						$proto64=array();
			$obj = new SQLField(array(
	"m_strName" => "origin_requirements",
	"m_strTable" => "gsp_commercial_details"
));

$proto64["m_expr"]=$obj;
$proto64["m_alias"] = "";
$obj = new SQLFieldListItem($proto64);

$proto37["m_fieldlist"][]=$obj;
						$proto66=array();
			$obj = new SQLField(array(
	"m_strName" => "book_nos",
	"m_strTable" => "gsp_commercial_details"
));

$proto66["m_expr"]=$obj;
$proto66["m_alias"] = "";
$obj = new SQLFieldListItem($proto66);

$proto37["m_fieldlist"][]=$obj;
						$proto68=array();
			$obj = new SQLField(array(
	"m_strName" => "ship_status",
	"m_strTable" => "gsp_commercial_details"
));

$proto68["m_expr"]=$obj;
$proto68["m_alias"] = "";
$obj = new SQLFieldListItem($proto68);

$proto37["m_fieldlist"][]=$obj;
						$proto70=array();
			$obj = new SQLField(array(
	"m_strName" => "status",
	"m_strTable" => "gsp_commercial_details"
));

$proto70["m_expr"]=$obj;
$proto70["m_alias"] = "";
$obj = new SQLFieldListItem($proto70);

$proto37["m_fieldlist"][]=$obj;
						$proto72=array();
			$obj = new SQLField(array(
	"m_strName" => "signatory",
	"m_strTable" => "gsp_commercial_details"
));

$proto72["m_expr"]=$obj;
$proto72["m_alias"] = "";
$obj = new SQLFieldListItem($proto72);

$proto37["m_fieldlist"][]=$obj;
						$proto74=array();
			$obj = new SQLField(array(
	"m_strName" => "pre_carriage_mode",
	"m_strTable" => "gsp_commercial_details"
));

$proto74["m_expr"]=$obj;
$proto74["m_alias"] = "";
$obj = new SQLFieldListItem($proto74);

$proto37["m_fieldlist"][]=$obj;
						$proto76=array();
			$obj = new SQLField(array(
	"m_strName" => "pre_carriage_from",
	"m_strTable" => "gsp_commercial_details"
));

$proto76["m_expr"]=$obj;
$proto76["m_alias"] = "";
$obj = new SQLFieldListItem($proto76);

$proto37["m_fieldlist"][]=$obj;
						$proto78=array();
			$obj = new SQLField(array(
	"m_strName" => "pre_carriage_to",
	"m_strTable" => "gsp_commercial_details"
));

$proto78["m_expr"]=$obj;
$proto78["m_alias"] = "";
$obj = new SQLFieldListItem($proto78);

$proto37["m_fieldlist"][]=$obj;
						$proto80=array();
			$obj = new SQLField(array(
	"m_strName" => "ref_id",
	"m_strTable" => "gsp_commercial_details"
));

$proto80["m_expr"]=$obj;
$proto80["m_alias"] = "";
$obj = new SQLFieldListItem($proto80);

$proto37["m_fieldlist"][]=$obj;
						$proto82=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "\"\""
));

$proto82["m_expr"]=$obj;
$proto82["m_alias"] = "buyer_address";
$obj = new SQLFieldListItem($proto82);

$proto37["m_fieldlist"][]=$obj;
						$proto84=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "\"\""
));

$proto84["m_expr"]=$obj;
$proto84["m_alias"] = "account_address";
$obj = new SQLFieldListItem($proto84);

$proto37["m_fieldlist"][]=$obj;
$proto37["m_fromlist"] = array();
												$proto86=array();
$proto86["m_link"] = "SQLL_MAIN";
			$proto87=array();
$proto87["m_strName"] = "gsp_commercial_details";
$proto87["m_columns"] = array();
$proto87["m_columns"][] = "id";
$proto87["m_columns"][] = "bcontact_id";
$proto87["m_columns"][] = "account_id";
$proto87["m_columns"][] = "ship_mode_id";
$proto87["m_columns"][] = "ship_from_city";
$proto87["m_columns"][] = "ship_from_country";
$proto87["m_columns"][] = "ship_to_country";
$proto87["m_columns"][] = "ship_to_port";
$proto87["m_columns"][] = "ship_date";
$proto87["m_columns"][] = "remarks";
$proto87["m_columns"][] = "support_documents";
$proto87["m_columns"][] = "origin_requirements";
$proto87["m_columns"][] = "book_nos";
$proto87["m_columns"][] = "ship_status";
$proto87["m_columns"][] = "status";
$proto87["m_columns"][] = "signatory";
$proto87["m_columns"][] = "pre_carriage_mode";
$proto87["m_columns"][] = "pre_carriage_from";
$proto87["m_columns"][] = "pre_carriage_to";
$proto87["m_columns"][] = "ref_id";
$obj = new SQLTable($proto87);

$proto86["m_table"] = $obj;
$proto86["m_alias"] = "";
$proto88=array();
$proto88["m_sql"] = "";
$proto88["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto88["m_column"]=$obj;
$proto88["m_contained"] = array();
$proto88["m_strCase"] = "";
$proto88["m_havingmode"] = "0";
$proto88["m_inBrackets"] = "0";
$proto88["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto88);

$proto86["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto86);

$proto37["m_fromlist"][]=$obj;
$proto37["m_groupby"] = array();
$proto37["m_orderby"] = array();
$obj = new SQLQuery($proto37);

$queryData_gsp_commercial_details = $obj;
$tdatagsp_commercial_details[".sqlquery"] = $queryData_gsp_commercial_details;

include(getabspath("include/gsp_commercial_details_events.php"));
$tableEvents["gsp_commercial_details"] = new eventclass_gsp_commercial_details;

?>
